﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;


[DisallowMultipleComponent]
public class ButtonVoice : MonoBehaviour, IPointerUpHandler
{
    public string voiceName;

    public void SetVoice(string voiceName)
    {
        this.voiceName = voiceName;
    }
    
    public void OnPointerUp(PointerEventData eventData)
    {
        VoiceManager.Instance.PlayVoice(voiceName,VoiceManager.VoiceType.Button);      
    }    
}
